<div class="append">
	<form action="{write_url url=$thisurl go='append'}" method="post">
	<input name="status" type="hidden" value="{$orders.status}" />
	<table width="100%" border="0" cellspacing="1" cellpadding="0">
		<tr><th colspan="4">更改到货情况</th></tr>
		<tr>
			<td width="15%" align="right">订单编号</td>
			<td>{brite_spot query =$get.info str=$orders.orders_id}</td>
			<td width="15%" align="right">订单状态</td>
			<td>{$status[$orders.status]}</td>
		</tr>
		<tr>
			<td align="right" class="Need">购买人</td>
			<td>{brite_spot query =$get.info str=$orders.account}<input name="proxy_id" type="hidden" value="{$orders.proxy_id}" /></td>
			<td align="right">组退点</td>
			<td>{$orders.rebate} %</td>
		</tr>
		<tr>
			<td align="right">业务</td>
			<td>{brite_spot query =$get.info str=$orders.salesman_name}</td>
			<td align="right">客服</td>
			<td>{brite_spot query =$get.info str=$orders.service_name}</td>
		</tr>
		<tr>
			<td align="right" class="Need">总价</td>
			<td>{$orders.price} 元</td>
			<td align="right" class="Need">定金</td>
			<td>{$orders.earnest} 元</td>
		</tr>
		<tr>
			<td align="right">下单时间</td>
			<td>{$orders.time|date_format:"%Y-%m-%d %H:%M:%S"}</td>
			<td align="right" class="Need">已付定金</td>
			<td>{$orders.gotten_money} 元</td>
		</tr>
		<tr>
			<td align="right">外部备注</td>
			<td colspan="3">{$orders.remark}</td>
		</tr>
		<tr><td colspan="4" align="center" style="color:#0C6">注意:当 到货情况 全部选中后,那么这张订单将自动变成 [{$status.balance}] 状态</td></tr>
		<tr>
			<td colspan="4">
				<table width="100%" border="0" cellspacing="1" cellpadding="0" id="tab_show" style="margin:0.5em 0 0 0">
					<tr>
						<th>产品编号</th>
						<th>形状</th>
						<th>重量</th>
						<th>颜色</th>
						<th>净度</th>
						<th>进货价</th>
						<th>数量</th>
						<th>实际售价</th>
						<th>快递类型</th>
						<th>快递单号</th>
						<th>产品状态</th>
						<th>到货情况</th>
						<th width="5%">详情</th>
					</tr>
					{foreach item=pso from=$product}
					<tr align="center">
						<td>{$pso.info.ProID}<input name="ProID[{$pso.id}]" type="hidden" value="{$pso.info.ProID}" /></td>
						<td>{$shape[$pso.info.shape]}</td>
						<td>{$pso.info.weight}</td>
						<td>{$pso.info.color}</td>
						<td>{$pso.info.clarity}</td>
						<td>{$pso.info.infml}</td>
						<td>{$pso.amount}</td>
						<td>{$pso.price}</td>
						{if $pso.status == 'Y'}
						<td>
							<label for="ems_{$pso.id}" style="display:block"><input type="radio" name="express_type[{$pso.id}]" value="EMS" id="ems_{$pso.id}" {checked val=$pso.express_type str='EMS'} /> EMS</label>
							<label for="shunfen_{$pso.id}" style="display:block"><input type="radio" name="express_type[{$pso.id}]" value="顺丰" id="shunfen_{$pso.id}" {checked val=$pso.express_type str='顺丰'} /> 顺丰</label>
						</td>
						<td><input name="express_ID[{$pso.id}]" type="text" style="width:120px" value="{$pso.express_ID}" /></td>
						<td>通过审核</td>
						<td>
							<input name="Y_is_arrival[{$pso.id}]" type="hidden" value="{$pso.is_arrival|default:'N'}" />
							<label for="de_{$pso.id}"><input name="is_arrival[{$pso.id}]" id="de_{$pso.id}" {checked val=$pso.is_arrival str='Y'} type="checkbox" value="Y" /> 到货</label>
						</td>
						{else}
						<td></td>
						<td></td>
						<td>取消</td>
						<td></td>
						{/if}
						<td class="action"><a href="javascript:;" onclick="show_detail(this , '{$pso.id}' , 13)" class="act_3_10" title="产品详情"></a></td>
					</tr>
					{/foreach}
				</table>
			</td>
		</tr>
		<tr><th colspan="4" align="center"><input type="submit" value=" 确 认 " /></th></tr>
	</table>
	</form>
</div>
